package com.google.sky.excepts;

import com.google.sky.domain.Mark;

/**
 * Created with IntelliJ IDEA.
 * User: Yuri
 * Date: 24.11.14
 * Time: 8:35
 * To change this template use File | Settings | File Templates.
 */
public class EndOfGameException extends RuntimeException {
    private Mark mark;
    private boolean outOfBoard=false;


    public EndOfGameException(Mark mark) {
        super();
        this.mark=mark;
    }

    public EndOfGameException(boolean outOfBoard) {
        super();
        this.outOfBoard=outOfBoard;
    }


    public Mark getMark() {
        return mark;
    }

    public boolean isOutOfBoard() {
        return outOfBoard;
    }
}
